
function show(title,louceng){
//	alert(obj);
//	alert(title);
//	alert(louceng);
	document.getElementById("tags").value = title;
	document.getElementById("locate").value = louceng;
}

function checkform(form) {
	title = form.tags.value;
	context = form.toppic.value;
	title = trim(title);
	context = trim(context);
	if(title==""){
		alert("标题为空");
	}else if(context==""){
		alert("内容为空");
	}else{
		document.getElementById("content").value = document.getElementById("tags").value +"<br>"+ context;
 		return true;
	}
	return false;
}


//去左右空格;   
function trim(s){  
	return  s.replace(/(^\s*)|(\s*$)/, "");  
}   


